﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin.Master" AutoEventWireup="true" CodeBehind="User.aspx.cs" Inherits="BabyShop.CP.User" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <br />
&nbsp;<asp:TextBox ID="txt_keysearch" runat="server" Height="37px" Width="497px"></asp:TextBox>&nbsp;
       <span class="btn btn-small gradient btn-green"><asp:Button ID="cmd_search" runat="server" CssClass="btn" Height="36px" 
        onclick="cmd_search_Click" Text="Tìm" Width="65px" /></span>
    <br />
    <br />
&nbsp;<asp:Label ID="lb_message" runat="server" ForeColor="#FF3300"></asp:Label>
    <br />
    <br />
    &nbsp;<span class="btn btn-small gradient btn-green"><asp:Button ID="cmd_add" 
        runat="server" CssClass="btn" height="36px" 
        Text="Thêm" width="65px" onclick="cmd_add_Click" /></span>
    <br />
    <br />
    <asp:GridView ID="GridView" runat="server" AutoGenerateColumns="False" 
        CellPadding="4" ForeColor="#333333" GridLines="None" Width="864px">
        <AlternatingRowStyle BackColor="White" />
        <Columns>
            <asp:BoundField DataField="id" HeaderText="ID" />
            <asp:BoundField DataField="username" HeaderText="Username" />
            <asp:BoundField DataField="email" HeaderText="Email" />
            <asp:BoundField DataField="fullname" HeaderText="Fullname" />
            <asp:BoundField DataField="address" HeaderText="Address" />
            <asp:BoundField DataField="birthday" HeaderText="Birthday" />
            
            <asp:TemplateField>
                <ItemTemplate>
                <span class="btn btn-small gradient btn-green"> 
                    <asp:HyperLink ID="HyperLink1" runat="server" 
                        NavigateUrl='<%# Eval("id", "~/CP/edituser.aspx?id={0}") %>' Text="<span>Sửa</span>"></asp:HyperLink>
                    </span>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField>
                <ItemTemplate>
                <span class="btn btn-small gradient btn-warning">
                    <asp:HyperLink ID="HyperLink2" runat="server" 
                        NavigateUrl='<%# Eval("id", "~/CP/user.aspx?id={0}&action=delete") %>' 
                        Text="<span>Xóa</span>"></asp:HyperLink>
                </span>
                </ItemTemplate>
            </asp:TemplateField>
        </Columns>
        <EditRowStyle BackColor="#2461BF" />
        <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
        <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
        <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
        <RowStyle BackColor="#EFF3FB" />
        <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
        <SortedAscendingCellStyle BackColor="#F5F7FB" />
        <SortedAscendingHeaderStyle BackColor="#6D95E1" />
        <SortedDescendingCellStyle BackColor="#E9EBEF" />
        <SortedDescendingHeaderStyle BackColor="#4870BE" />
    </asp:GridView>
    <br />
    </asp:Content>